import request from '@/utils/request'

export function imgCodeFnAPI(clientToken) { // 验证码图片请求
  return request({
    url: `/user-service/user/imageCode/${clientToken}`,
    responseType: 'blob'
  })
}

export function loginAPI(data) { // 用户登陆请求
  return request({
    url: '/user-service/user/login',
    method: 'POST',
    data
  })
}

/**
 * 图片上传
 */
export function updataImg(fileName) { // 用户登陆请求
  return request({
    url: '/vm-service/sku/fileUpload',
    method: 'POST',
    data: {
      fileName
    }
  })
}
